package com.xnyzc.lhy.didi.feign.fallback.trajectory;

import com.xnyzc.lhy.common.entity.Rv;
import com.xnyzc.lhy.didi.feign.trajectory.FeignTrajectoryService;
import com.xnyzc.lhy.order.entity.gps.OaSysTrajectory;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 轨迹服务
 *
 * @author cuixiaojian
 * @date 2020-01-06
 */
@Slf4j
@Service
public class FeignTrajectoryServiceFallback implements FeignTrajectoryService {

    /**
     * 预估轨迹保存
     * @param oaSysTrajectoryList 轨迹集合
     * @return Rv
     */
    @Override
    public Rv savePredictedTrajectory(List<OaSysTrajectory> oaSysTrajectoryList) {

        log.error("------------------------------------------------------------------------------------------------");
        log.error("----------------------------------------预估轨迹保存失败------------------------------------------");
        log.error("------------------------------------------------------------------------------------------------");

        return Rv.wrap(null);
    }

}
